import React,{ Component } from "react";
import { View,Text,StatusBar } from "react-native";
import { Button } from "@ant-design/react-native";
import { save as Storage } from "../../utils/StorageUtils";

export default class Login extends Component {
    static navigationOptions = ({ navigation })=>({
        header:null,
    })
    LoginMethod = ()=>{
        const { navigation } = this.props;
        const token = 'true';
        Storage('userToken',token);
        navigation.navigate('App');
    }
    render(){
        return (
            <View>
                <Text>登陆页面</Text>
                <Button onPress={()=>this.LoginMethod()}>登陆</Button>
            </View>
        )
    }
}
